home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Magazine
/
Morphos
/
GCC
/
lib
/
gcc-lib
/
ppc-amigaos
/
2.95.1
/
sys-include
/
mgl
/
clip.h
next >
Wrap
C/C++ Source or Header
|
2000-03-13
|
798b
|
40 lines
/*
* $Id: clip.h,v 1.2 2000/01/10 01:10:48 tfrieden Exp $
*
* $Author: tfrieden $
*
* $Date: 2000/01/10 01:10:48 $
* $Revision: 1.2 $
*
* (C) 1999 by Hyperion Software
* All rights reserved
*
* This file is part of the MiniGL library project
* See the file Licence.txt for more details
*
*/
#ifndef _CLIP_H
#define _CLIP_H
void hc_CodePoint(MGLVertex *v);
GLboolean hc_DecideFrontface(GLcontext context, MGLVertex *a, MGLVertex *b, MGLVertex *c, GLubyte outcode);
/*
** This structure holds the polygon data for clipping.
*/
typedef struct MGLPolygon_t
{
int numverts;
int verts[MGL_MAXVERTS];
} MGLPolygon;
void dh_DrawPoly(GLcontext context, MGLPolygon *poly);
void hc_ClipAndDrawPoly(GLcontext context, MGLPolygon *poly, GLubyte or_codes);
#endif